package com.example.common.config.common.rest;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * <p>
 *      Http 请求客户端
 * </p>
 *
 * @author zyred
 * @since v 0.1
 **/
@Slf4j
@Configuration
public class RestTemplateConfig {

    @Bean
    public RestTemplate restTemplate () {
        log.info(">>>>>>>>>>>>>>>> common rest template init starting >>>>>>>>>>>>>>>>>>>>>");
        return new RestTemplate();
    }

}
